package com.hx.haowumall.haowumallsearch.feign;

import com.hx.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient("haowumall-product")
public interface ProductFeignService {

    @GetMapping("haowumallproduct/attr/info/{attrId}")
    public R attrInfo(@PathVariable("attrId") Long attrId);

    @GetMapping("haowumallproduct/brand/infos")
    public R brandInfo(@RequestParam("branfIds") List<Long> brandIds);

}
